package com.yike.user.service;

import com.yike.user.entity.PlatformRoleMenu;
import com.yike.user.param.PlatformRoleMenuPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.user.param.PlatformRoleMenuParam;
import com.yike.user.vo.PlatformMenuTreeVo;

import java.util.List;

/**
 * 平台角色菜单 服务类
 *
 * @author Sakura
 * @since 2024-10-29
 */
public interface PlatformRoleMenuService extends BaseService<PlatformRoleMenu> {

    /**
     * 保存
     *
     * @param platformRoleMenuParam
     * @return
     * @throws Exception
     */
    boolean save(PlatformRoleMenuParam platformRoleMenuParam) throws Exception;

    /**
     *获取角色权限
     *
     * @param roleId
     * @return
     * @throws Exception
     */
    List<PlatformMenuTreeVo> getMenus(Long roleId);

    List<Long> getMenuIds(Long roleId);

}
